using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

namespace VOL.WebApi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        [HttpGet("test1")]
        public IActionResult Test1()
        {
           //返回一段json数据
            return Ok(new { name = "张三", age = 18 });
        }
        [HttpGet("Test2")]
        public IActionResult Test2()
        { 
              return Ok(new { name = "李四", age = 20 });
        }
        [HttpGet("Test4")]
        public IActionResult Test4()
        {
            return Ok(new { name = "李四", age = 20 });
        }
        [HttpGet("Test5")]
        public IActionResult Test5()
        {
            return Ok(new { name = "李四", age = 20 });
        }
        [HttpGet("Test6")]
        public IActionResult Test6()
        {
            return Ok(new { name = "李四", age = 20 });
        }
        [HttpGet("Test7")]
        public IActionResult Test7()
        {
            return Ok(new { name = "李四", age = 20 });
        }
        [HttpGet("Test8")]
        public IActionResult Test8()
        {
            return Ok(new { name = "李四", age = 20 });
        }
         [HttpGet("Test9")]
        public IActionResult Test9()
        {
            return Ok(new { name = "李四", age = 20 });
        }
        [HttpGet("Test10")]
        public IActionResult Test10()
        {
            return Ok(new { name = "李四", age = 20 });
        }
    }
}
